<template>
  <div v-for="(item, index) in list" :key="index">{{ item.name }}</div>
</template>

<script setup lang="ts">
import { axios } from "./serve";
import { reactive } from "vue";

// 这种引用路劲不行
// const list = await axios("@/views/saync/data.json");
const list = await axios("./data.json");
</script>

<style lang="less" scoped>
div {
  padding: 20px;
  background: red;
}
</style>
